<template>
  <div>
      <img :src="detail.coverImgUrl" alt="">
      <div>{{detail.name}} </div>
  </div>
</template>

<script>
import axios from 'axios'
export default {
    data() {
        return {
            detail:{}
        }
    },
    mounted() {
        let id = this.$route.params.id
        axios.get(`http://122.112.161.135:3000/playlist/detail?id=${id}`).then(res=>{
            console.log(res.data.playlist);
            this.detail = res.data.playlist;
        })
    },
}
</script>

<style>

</style>